﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using EF4.Core.Models.Entities;

namespace EF4.Model.Entities
{
    [MetadataType(typeof(ProductMetaData))]
    public partial class Product 
    {
       
    }
    public class ProductMetaData
    {
        [Required(ErrorMessage = "test", AllowEmptyStrings = false)]
        public virtual string Name { get; set; }
    }
}
